package yang.itcode.mapper;

import cn.hutool.json.JSONObject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import yang.itcode.model.pojo.SalesOrderItem;

import java.util.List;

@Mapper
public interface SalesOrderItemMapper {
    int insert(SalesOrderItem salesOrderItem);

    int update(SalesOrderItem salesOrderItem);

    int deleteById(Integer id);

    SalesOrderItem selectById(Integer id);

    List<SalesOrderItem> selectAll();

    List<SalesOrderItem> selectByCondition(JSONObject condition);

    List<JSONObject> selectSalesOrderItemsView(JSONObject condition);
}
